/*------------------------------------------------------*/
/*                                                      */
/* Copyright (C)	sky-mobi.com                        */
/* All rights reserved                                  */
/*                                                      */
/* Author   tristan.yang                                */
/*                                                      */
/* History  2011-5-10 created                           */
/*                                                      */
/*------------------------------------------------------*/

#ifndef __ROOM_MEDIA_H__
#define __ROOM_MEDIA_H__

#include "RtBase.h"
#include "RtDefines.h"
#include "mbinterface.h"
#include "RtUtilTemplates.h"
#include "RtTimerWrapper.h"
#include "RtConfigInitFile.h"
#include "chatpdu.h"

#include "mediaInterface.h"

class CRoomMedia
{
public:
	static CRoomMedia* Instance();
	
	RtResult Initialize();
	void Release();
	
public:
	mediaConfig	m_config;
	
protected:
	friend class CRtSingletonT<CRoomMedia>;
	CRoomMedia();
	virtual ~CRoomMedia();	

private:
	//chatroom module
	IMediaModule* m_pRoomModule;
};

typedef CRtSingletonT<CRoomMedia> CRoomMediaSingleton;
#endif//__ROOM_MEDIA_H__
